﻿package com.tudou.home.newskin.buttons
{
    import com.tudou.home.newskin.consts.*;
    import flash.display.*;

    public class BackgroundFrame extends Shape
    {

        public function BackgroundFrame()
        {
            return;
        }// end function

        override public function set width(param1:Number) : void
        {
            var _loc_2:* = height;
            graphics.clear();
            graphics.lineStyle(1, NewSkinConsts.BACKGROUND_LINE_OUTER_COLOR, 1, true, LineScaleMode.NONE, CapsStyle.SQUARE, JointStyle.MITER);
            graphics.moveTo(0, _loc_2);
            graphics.lineTo(0, 0);
            graphics.lineTo((param1 - 1), 0);
            graphics.lineTo((param1 - 1), _loc_2);
            graphics.lineStyle(1, NewSkinConsts.BACKGROUND_LINE_INNER_COLOR, 1, true, LineScaleMode.NONE, CapsStyle.SQUARE, JointStyle.MITER);
            graphics.moveTo(1, _loc_2);
            graphics.lineTo(1, 1);
            graphics.lineTo(param1 - 2, 1);
            graphics.lineTo(param1 - 2, _loc_2);
            return;
        }// end function

        override public function set height(param1:Number) : void
        {
            var _loc_2:* = width;
            graphics.clear();
            graphics.lineStyle(1, NewSkinConsts.BACKGROUND_LINE_OUTER_COLOR, 1, true, LineScaleMode.NONE, CapsStyle.SQUARE, JointStyle.MITER);
            graphics.moveTo(0, param1);
            graphics.lineTo(0, 0);
            graphics.lineTo((_loc_2 - 1), 0);
            graphics.lineTo((_loc_2 - 1), param1);
            graphics.lineStyle(1, NewSkinConsts.BACKGROUND_LINE_INNER_COLOR, 1, true, LineScaleMode.NONE, CapsStyle.SQUARE, JointStyle.MITER);
            graphics.moveTo(1, param1);
            graphics.lineTo(1, 1);
            graphics.lineTo(_loc_2 - 2, 1);
            graphics.lineTo(_loc_2 - 2, param1);
            return;
        }// end function

    }
}
